import request from "../utils/request.ts";

//用户登录
export function userLogin(data: any) {
  return request({
    url: "/user/login",
    method: "post",
    data,
  });
}
//用户注册
export function userRegister(data: any) {
  return request({
    url: "/user/register",
    method: "post",
    data,
  });
}
//用户修改信息
export function update(data: any) {
    return request({
        url: "/user/update",
        method: "post",
        data,
    });
}
